<?php

if(isset($_POST['submit'])){
   
    if((isset($_FILES['image'])) and ($_FILES['image']['name']!='')){
        $img="image";
      
    }
    else {
        $img=false;
       
    }
     $size=$_POST['size']; 
     $price=$_POST['price'];
     $quantity=$_POST['quantity'];
     $category=$_POST['category'];
     $st_ID=3;///fixed 3shan hna5do mn alsession b3d kda 
     include 'productClass.php';
     $pro=new Product($st_ID,$category,$size,$img,$price,$quantity );
     $pro->getProducts();
}
?>
